package fr.lille.inria.adam.lifl.EcoGardeInventory.Utils;

import fr.lille.inria.adam.lifl.EcoGardeInventory.scrapper.User;

public class Storage {

	protected Storage next = null;

	public Storage setNext(Storage next) {
		this.next = next;
		return next;
	}

	public void addNote(Note n, long userId, long noteId, HandlerInterface handler) {
		next.addNote(n, userId, noteId, handler);
	}

	public long deleteNote(long id) {
		return next.deleteNote(id);
	}

	public void getAllNotes(User user, long user_id, HandlerInterface handler) {
		next.getAllNotes(user, user_id, handler);
	}

	public void getAllNotes(User user, long user_id, String order,
			HandlerInterface handler) {
		next.getAllNotes(user, user_id, order, handler);
	};

	public Note getNoteById(long id) {
		return next.getNoteById(id);
	}

	public long editNote(Note note, long id) {
		return next.editNote(note, id);
	}

	public User getUserByEmail(String email) {
		return next.getUserByEmail(email);
	}

	public void addUser(User user, HandlerInterface handler) {
		next.addUser(user, handler);
	}
}
